<?php
/* @var $this GroupController */

$this->pageTitle=Yii::app()->name.'-'.$group->name;
?>

<h1><?=$group->name?> 管理</h1>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm',array(
	'id'=>'admin-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
));?>

<div class="row">
	<?php echo $form->labelEx($group,'name');?>
	<?php echo $form->textField($group,'name');?>
	<?php echo $form->error($group,'name');?>
</div>

<div class="row">
	<?php echo $form->labelEx($group,'description');?>
	<?php echo $form->textArea($group,'description');?>
	<?php echo $form->error($group,'description');?>
</div>

<div class="row">
	<?php echo $form->labelEx($group,'category');?>
	<?php $list=array(array('value'=>0,'text'=>'分类1'),array('value'=>1,'text'=>'分类2'),array('value'=>2,'text'=>'分类3'),array('value'=>3,'text'=>'分类4'));?>
	<?php echo $form->dropDownList($group,'category',CHtml::listData($list,'value','text'),array('empty'=>'--请选择--'));?>
	<?php echo $form->error($group,'category');?>
</div>

<div class="row">
	<?php echo $form->labelEx($group,'image');?>
	<?php echo $form->textField($group,'image');?>
	<?php echo $form->error($group,'image');?>
</div>
<div class="row buttons">
	<?php echo CHtml::submitButton('更改');?>
</div>
<?php $this->endWidget();?>
</div><!--form-->
